package com.qumitech.visualnovel.model.dao.console.view;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class BookTotalStaticsDOExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BookTotalStaticsDOExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andDayIsNull() {
            addCriterion("`day` is null");
            return (Criteria) this;
        }

        public Criteria andDayIsNotNull() {
            addCriterion("`day` is not null");
            return (Criteria) this;
        }

        public Criteria andDayEqualTo(Date value) {
            addCriterionForJDBCDate("`day` =", value, "day");
            return (Criteria) this;
        }

        public Criteria andDayNotEqualTo(Date value) {
            addCriterionForJDBCDate("`day` <>", value, "day");
            return (Criteria) this;
        }

        public Criteria andDayGreaterThan(Date value) {
            addCriterionForJDBCDate("`day` >", value, "day");
            return (Criteria) this;
        }

        public Criteria andDayGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("`day` >=", value, "day");
            return (Criteria) this;
        }

        public Criteria andDayLessThan(Date value) {
            addCriterionForJDBCDate("`day` <", value, "day");
            return (Criteria) this;
        }

        public Criteria andDayLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("`day` <=", value, "day");
            return (Criteria) this;
        }

        public Criteria andDayIn(List<Date> values) {
            addCriterionForJDBCDate("`day` in", values, "day");
            return (Criteria) this;
        }

        public Criteria andDayNotIn(List<Date> values) {
            addCriterionForJDBCDate("`day` not in", values, "day");
            return (Criteria) this;
        }

        public Criteria andDayBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("`day` between", value1, value2, "day");
            return (Criteria) this;
        }

        public Criteria andDayNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("`day` not between", value1, value2, "day");
            return (Criteria) this;
        }

        public Criteria andChannelIsNull() {
            addCriterion("channel is null");
            return (Criteria) this;
        }

        public Criteria andChannelIsNotNull() {
            addCriterion("channel is not null");
            return (Criteria) this;
        }

        public Criteria andChannelEqualTo(String value) {
            addCriterion("channel =", value, "channel");
            return (Criteria) this;
        }

        public Criteria andChannelNotEqualTo(String value) {
            addCriterion("channel <>", value, "channel");
            return (Criteria) this;
        }

        public Criteria andChannelGreaterThan(String value) {
            addCriterion("channel >", value, "channel");
            return (Criteria) this;
        }

        public Criteria andChannelGreaterThanOrEqualTo(String value) {
            addCriterion("channel >=", value, "channel");
            return (Criteria) this;
        }

        public Criteria andChannelLessThan(String value) {
            addCriterion("channel <", value, "channel");
            return (Criteria) this;
        }

        public Criteria andChannelLessThanOrEqualTo(String value) {
            addCriterion("channel <=", value, "channel");
            return (Criteria) this;
        }

        public Criteria andChannelLike(String value) {
            addCriterion("channel like", value, "channel");
            return (Criteria) this;
        }

        public Criteria andChannelNotLike(String value) {
            addCriterion("channel not like", value, "channel");
            return (Criteria) this;
        }

        public Criteria andChannelIn(List<String> values) {
            addCriterion("channel in", values, "channel");
            return (Criteria) this;
        }

        public Criteria andChannelNotIn(List<String> values) {
            addCriterion("channel not in", values, "channel");
            return (Criteria) this;
        }

        public Criteria andChannelBetween(String value1, String value2) {
            addCriterion("channel between", value1, value2, "channel");
            return (Criteria) this;
        }

        public Criteria andChannelNotBetween(String value1, String value2) {
            addCriterion("channel not between", value1, value2, "channel");
            return (Criteria) this;
        }

        public Criteria andGeoCodeIsNull() {
            addCriterion("geo_code is null");
            return (Criteria) this;
        }

        public Criteria andGeoCodeIsNotNull() {
            addCriterion("geo_code is not null");
            return (Criteria) this;
        }

        public Criteria andGeoCodeEqualTo(String value) {
            addCriterion("geo_code =", value, "geoCode");
            return (Criteria) this;
        }

        public Criteria andGeoCodeNotEqualTo(String value) {
            addCriterion("geo_code <>", value, "geoCode");
            return (Criteria) this;
        }

        public Criteria andGeoCodeGreaterThan(String value) {
            addCriterion("geo_code >", value, "geoCode");
            return (Criteria) this;
        }

        public Criteria andGeoCodeGreaterThanOrEqualTo(String value) {
            addCriterion("geo_code >=", value, "geoCode");
            return (Criteria) this;
        }

        public Criteria andGeoCodeLessThan(String value) {
            addCriterion("geo_code <", value, "geoCode");
            return (Criteria) this;
        }

        public Criteria andGeoCodeLessThanOrEqualTo(String value) {
            addCriterion("geo_code <=", value, "geoCode");
            return (Criteria) this;
        }

        public Criteria andGeoCodeLike(String value) {
            addCriterion("geo_code like", value, "geoCode");
            return (Criteria) this;
        }

        public Criteria andGeoCodeNotLike(String value) {
            addCriterion("geo_code not like", value, "geoCode");
            return (Criteria) this;
        }

        public Criteria andGeoCodeIn(List<String> values) {
            addCriterion("geo_code in", values, "geoCode");
            return (Criteria) this;
        }

        public Criteria andGeoCodeNotIn(List<String> values) {
            addCriterion("geo_code not in", values, "geoCode");
            return (Criteria) this;
        }

        public Criteria andGeoCodeBetween(String value1, String value2) {
            addCriterion("geo_code between", value1, value2, "geoCode");
            return (Criteria) this;
        }

        public Criteria andGeoCodeNotBetween(String value1, String value2) {
            addCriterion("geo_code not between", value1, value2, "geoCode");
            return (Criteria) this;
        }

        public Criteria andGeoNameIsNull() {
            addCriterion("geo_name is null");
            return (Criteria) this;
        }

        public Criteria andGeoNameIsNotNull() {
            addCriterion("geo_name is not null");
            return (Criteria) this;
        }

        public Criteria andGeoNameEqualTo(String value) {
            addCriterion("geo_name =", value, "geoName");
            return (Criteria) this;
        }

        public Criteria andGeoNameNotEqualTo(String value) {
            addCriterion("geo_name <>", value, "geoName");
            return (Criteria) this;
        }

        public Criteria andGeoNameGreaterThan(String value) {
            addCriterion("geo_name >", value, "geoName");
            return (Criteria) this;
        }

        public Criteria andGeoNameGreaterThanOrEqualTo(String value) {
            addCriterion("geo_name >=", value, "geoName");
            return (Criteria) this;
        }

        public Criteria andGeoNameLessThan(String value) {
            addCriterion("geo_name <", value, "geoName");
            return (Criteria) this;
        }

        public Criteria andGeoNameLessThanOrEqualTo(String value) {
            addCriterion("geo_name <=", value, "geoName");
            return (Criteria) this;
        }

        public Criteria andGeoNameLike(String value) {
            addCriterion("geo_name like", value, "geoName");
            return (Criteria) this;
        }

        public Criteria andGeoNameNotLike(String value) {
            addCriterion("geo_name not like", value, "geoName");
            return (Criteria) this;
        }

        public Criteria andGeoNameIn(List<String> values) {
            addCriterion("geo_name in", values, "geoName");
            return (Criteria) this;
        }

        public Criteria andGeoNameNotIn(List<String> values) {
            addCriterion("geo_name not in", values, "geoName");
            return (Criteria) this;
        }

        public Criteria andGeoNameBetween(String value1, String value2) {
            addCriterion("geo_name between", value1, value2, "geoName");
            return (Criteria) this;
        }

        public Criteria andGeoNameNotBetween(String value1, String value2) {
            addCriterion("geo_name not between", value1, value2, "geoName");
            return (Criteria) this;
        }

        public Criteria andBookIdIsNull() {
            addCriterion("book_id is null");
            return (Criteria) this;
        }

        public Criteria andBookIdIsNotNull() {
            addCriterion("book_id is not null");
            return (Criteria) this;
        }

        public Criteria andBookIdEqualTo(Integer value) {
            addCriterion("book_id =", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdNotEqualTo(Integer value) {
            addCriterion("book_id <>", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdGreaterThan(Integer value) {
            addCriterion("book_id >", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("book_id >=", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdLessThan(Integer value) {
            addCriterion("book_id <", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdLessThanOrEqualTo(Integer value) {
            addCriterion("book_id <=", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdIn(List<Integer> values) {
            addCriterion("book_id in", values, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdNotIn(List<Integer> values) {
            addCriterion("book_id not in", values, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdBetween(Integer value1, Integer value2) {
            addCriterion("book_id between", value1, value2, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdNotBetween(Integer value1, Integer value2) {
            addCriterion("book_id not between", value1, value2, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookTitleIsNull() {
            addCriterion("book_title is null");
            return (Criteria) this;
        }

        public Criteria andBookTitleIsNotNull() {
            addCriterion("book_title is not null");
            return (Criteria) this;
        }

        public Criteria andBookTitleEqualTo(String value) {
            addCriterion("book_title =", value, "bookTitle");
            return (Criteria) this;
        }

        public Criteria andBookTitleNotEqualTo(String value) {
            addCriterion("book_title <>", value, "bookTitle");
            return (Criteria) this;
        }

        public Criteria andBookTitleGreaterThan(String value) {
            addCriterion("book_title >", value, "bookTitle");
            return (Criteria) this;
        }

        public Criteria andBookTitleGreaterThanOrEqualTo(String value) {
            addCriterion("book_title >=", value, "bookTitle");
            return (Criteria) this;
        }

        public Criteria andBookTitleLessThan(String value) {
            addCriterion("book_title <", value, "bookTitle");
            return (Criteria) this;
        }

        public Criteria andBookTitleLessThanOrEqualTo(String value) {
            addCriterion("book_title <=", value, "bookTitle");
            return (Criteria) this;
        }

        public Criteria andBookTitleLike(String value) {
            addCriterion("book_title like", value, "bookTitle");
            return (Criteria) this;
        }

        public Criteria andBookTitleNotLike(String value) {
            addCriterion("book_title not like", value, "bookTitle");
            return (Criteria) this;
        }

        public Criteria andBookTitleIn(List<String> values) {
            addCriterion("book_title in", values, "bookTitle");
            return (Criteria) this;
        }

        public Criteria andBookTitleNotIn(List<String> values) {
            addCriterion("book_title not in", values, "bookTitle");
            return (Criteria) this;
        }

        public Criteria andBookTitleBetween(String value1, String value2) {
            addCriterion("book_title between", value1, value2, "bookTitle");
            return (Criteria) this;
        }

        public Criteria andBookTitleNotBetween(String value1, String value2) {
            addCriterion("book_title not between", value1, value2, "bookTitle");
            return (Criteria) this;
        }

        public Criteria andReadAccountNumIsNull() {
            addCriterion("read_account_num is null");
            return (Criteria) this;
        }

        public Criteria andReadAccountNumIsNotNull() {
            addCriterion("read_account_num is not null");
            return (Criteria) this;
        }

        public Criteria andReadAccountNumEqualTo(Integer value) {
            addCriterion("read_account_num =", value, "readAccountNum");
            return (Criteria) this;
        }

        public Criteria andReadAccountNumNotEqualTo(Integer value) {
            addCriterion("read_account_num <>", value, "readAccountNum");
            return (Criteria) this;
        }

        public Criteria andReadAccountNumGreaterThan(Integer value) {
            addCriterion("read_account_num >", value, "readAccountNum");
            return (Criteria) this;
        }

        public Criteria andReadAccountNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("read_account_num >=", value, "readAccountNum");
            return (Criteria) this;
        }

        public Criteria andReadAccountNumLessThan(Integer value) {
            addCriterion("read_account_num <", value, "readAccountNum");
            return (Criteria) this;
        }

        public Criteria andReadAccountNumLessThanOrEqualTo(Integer value) {
            addCriterion("read_account_num <=", value, "readAccountNum");
            return (Criteria) this;
        }

        public Criteria andReadAccountNumIn(List<Integer> values) {
            addCriterion("read_account_num in", values, "readAccountNum");
            return (Criteria) this;
        }

        public Criteria andReadAccountNumNotIn(List<Integer> values) {
            addCriterion("read_account_num not in", values, "readAccountNum");
            return (Criteria) this;
        }

        public Criteria andReadAccountNumBetween(Integer value1, Integer value2) {
            addCriterion("read_account_num between", value1, value2, "readAccountNum");
            return (Criteria) this;
        }

        public Criteria andReadAccountNumNotBetween(Integer value1, Integer value2) {
            addCriterion("read_account_num not between", value1, value2, "readAccountNum");
            return (Criteria) this;
        }

        public Criteria andReadNumIsNull() {
            addCriterion("read_num is null");
            return (Criteria) this;
        }

        public Criteria andReadNumIsNotNull() {
            addCriterion("read_num is not null");
            return (Criteria) this;
        }

        public Criteria andReadNumEqualTo(Integer value) {
            addCriterion("read_num =", value, "readNum");
            return (Criteria) this;
        }

        public Criteria andReadNumNotEqualTo(Integer value) {
            addCriterion("read_num <>", value, "readNum");
            return (Criteria) this;
        }

        public Criteria andReadNumGreaterThan(Integer value) {
            addCriterion("read_num >", value, "readNum");
            return (Criteria) this;
        }

        public Criteria andReadNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("read_num >=", value, "readNum");
            return (Criteria) this;
        }

        public Criteria andReadNumLessThan(Integer value) {
            addCriterion("read_num <", value, "readNum");
            return (Criteria) this;
        }

        public Criteria andReadNumLessThanOrEqualTo(Integer value) {
            addCriterion("read_num <=", value, "readNum");
            return (Criteria) this;
        }

        public Criteria andReadNumIn(List<Integer> values) {
            addCriterion("read_num in", values, "readNum");
            return (Criteria) this;
        }

        public Criteria andReadNumNotIn(List<Integer> values) {
            addCriterion("read_num not in", values, "readNum");
            return (Criteria) this;
        }

        public Criteria andReadNumBetween(Integer value1, Integer value2) {
            addCriterion("read_num between", value1, value2, "readNum");
            return (Criteria) this;
        }

        public Criteria andReadNumNotBetween(Integer value1, Integer value2) {
            addCriterion("read_num not between", value1, value2, "readNum");
            return (Criteria) this;
        }

        public Criteria andFirstReadNumIsNull() {
            addCriterion("first_read_num is null");
            return (Criteria) this;
        }

        public Criteria andFirstReadNumIsNotNull() {
            addCriterion("first_read_num is not null");
            return (Criteria) this;
        }

        public Criteria andFirstReadNumEqualTo(Integer value) {
            addCriterion("first_read_num =", value, "firstReadNum");
            return (Criteria) this;
        }

        public Criteria andFirstReadNumNotEqualTo(Integer value) {
            addCriterion("first_read_num <>", value, "firstReadNum");
            return (Criteria) this;
        }

        public Criteria andFirstReadNumGreaterThan(Integer value) {
            addCriterion("first_read_num >", value, "firstReadNum");
            return (Criteria) this;
        }

        public Criteria andFirstReadNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("first_read_num >=", value, "firstReadNum");
            return (Criteria) this;
        }

        public Criteria andFirstReadNumLessThan(Integer value) {
            addCriterion("first_read_num <", value, "firstReadNum");
            return (Criteria) this;
        }

        public Criteria andFirstReadNumLessThanOrEqualTo(Integer value) {
            addCriterion("first_read_num <=", value, "firstReadNum");
            return (Criteria) this;
        }

        public Criteria andFirstReadNumIn(List<Integer> values) {
            addCriterion("first_read_num in", values, "firstReadNum");
            return (Criteria) this;
        }

        public Criteria andFirstReadNumNotIn(List<Integer> values) {
            addCriterion("first_read_num not in", values, "firstReadNum");
            return (Criteria) this;
        }

        public Criteria andFirstReadNumBetween(Integer value1, Integer value2) {
            addCriterion("first_read_num between", value1, value2, "firstReadNum");
            return (Criteria) this;
        }

        public Criteria andFirstReadNumNotBetween(Integer value1, Integer value2) {
            addCriterion("first_read_num not between", value1, value2, "firstReadNum");
            return (Criteria) this;
        }

        public Criteria andFirstChapterFinishNumIsNull() {
            addCriterion("first_chapter_finish_num is null");
            return (Criteria) this;
        }

        public Criteria andFirstChapterFinishNumIsNotNull() {
            addCriterion("first_chapter_finish_num is not null");
            return (Criteria) this;
        }

        public Criteria andFirstChapterFinishNumEqualTo(Integer value) {
            addCriterion("first_chapter_finish_num =", value, "firstChapterFinishNum");
            return (Criteria) this;
        }

        public Criteria andFirstChapterFinishNumNotEqualTo(Integer value) {
            addCriterion("first_chapter_finish_num <>", value, "firstChapterFinishNum");
            return (Criteria) this;
        }

        public Criteria andFirstChapterFinishNumGreaterThan(Integer value) {
            addCriterion("first_chapter_finish_num >", value, "firstChapterFinishNum");
            return (Criteria) this;
        }

        public Criteria andFirstChapterFinishNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("first_chapter_finish_num >=", value, "firstChapterFinishNum");
            return (Criteria) this;
        }

        public Criteria andFirstChapterFinishNumLessThan(Integer value) {
            addCriterion("first_chapter_finish_num <", value, "firstChapterFinishNum");
            return (Criteria) this;
        }

        public Criteria andFirstChapterFinishNumLessThanOrEqualTo(Integer value) {
            addCriterion("first_chapter_finish_num <=", value, "firstChapterFinishNum");
            return (Criteria) this;
        }

        public Criteria andFirstChapterFinishNumIn(List<Integer> values) {
            addCriterion("first_chapter_finish_num in", values, "firstChapterFinishNum");
            return (Criteria) this;
        }

        public Criteria andFirstChapterFinishNumNotIn(List<Integer> values) {
            addCriterion("first_chapter_finish_num not in", values, "firstChapterFinishNum");
            return (Criteria) this;
        }

        public Criteria andFirstChapterFinishNumBetween(Integer value1, Integer value2) {
            addCriterion("first_chapter_finish_num between", value1, value2, "firstChapterFinishNum");
            return (Criteria) this;
        }

        public Criteria andFirstChapterFinishNumNotBetween(Integer value1, Integer value2) {
            addCriterion("first_chapter_finish_num not between", value1, value2, "firstChapterFinishNum");
            return (Criteria) this;
        }

        public Criteria andCostChapterUnlockNumIsNull() {
            addCriterion("cost_chapter_unlock_num is null");
            return (Criteria) this;
        }

        public Criteria andCostChapterUnlockNumIsNotNull() {
            addCriterion("cost_chapter_unlock_num is not null");
            return (Criteria) this;
        }

        public Criteria andCostChapterUnlockNumEqualTo(Integer value) {
            addCriterion("cost_chapter_unlock_num =", value, "costChapterUnlockNum");
            return (Criteria) this;
        }

        public Criteria andCostChapterUnlockNumNotEqualTo(Integer value) {
            addCriterion("cost_chapter_unlock_num <>", value, "costChapterUnlockNum");
            return (Criteria) this;
        }

        public Criteria andCostChapterUnlockNumGreaterThan(Integer value) {
            addCriterion("cost_chapter_unlock_num >", value, "costChapterUnlockNum");
            return (Criteria) this;
        }

        public Criteria andCostChapterUnlockNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("cost_chapter_unlock_num >=", value, "costChapterUnlockNum");
            return (Criteria) this;
        }

        public Criteria andCostChapterUnlockNumLessThan(Integer value) {
            addCriterion("cost_chapter_unlock_num <", value, "costChapterUnlockNum");
            return (Criteria) this;
        }

        public Criteria andCostChapterUnlockNumLessThanOrEqualTo(Integer value) {
            addCriterion("cost_chapter_unlock_num <=", value, "costChapterUnlockNum");
            return (Criteria) this;
        }

        public Criteria andCostChapterUnlockNumIn(List<Integer> values) {
            addCriterion("cost_chapter_unlock_num in", values, "costChapterUnlockNum");
            return (Criteria) this;
        }

        public Criteria andCostChapterUnlockNumNotIn(List<Integer> values) {
            addCriterion("cost_chapter_unlock_num not in", values, "costChapterUnlockNum");
            return (Criteria) this;
        }

        public Criteria andCostChapterUnlockNumBetween(Integer value1, Integer value2) {
            addCriterion("cost_chapter_unlock_num between", value1, value2, "costChapterUnlockNum");
            return (Criteria) this;
        }

        public Criteria andCostChapterUnlockNumNotBetween(Integer value1, Integer value2) {
            addCriterion("cost_chapter_unlock_num not between", value1, value2, "costChapterUnlockNum");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockNumIsNull() {
            addCriterion("chapter_unlock_num is null");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockNumIsNotNull() {
            addCriterion("chapter_unlock_num is not null");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockNumEqualTo(Integer value) {
            addCriterion("chapter_unlock_num =", value, "chapterUnlockNum");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockNumNotEqualTo(Integer value) {
            addCriterion("chapter_unlock_num <>", value, "chapterUnlockNum");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockNumGreaterThan(Integer value) {
            addCriterion("chapter_unlock_num >", value, "chapterUnlockNum");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("chapter_unlock_num >=", value, "chapterUnlockNum");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockNumLessThan(Integer value) {
            addCriterion("chapter_unlock_num <", value, "chapterUnlockNum");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockNumLessThanOrEqualTo(Integer value) {
            addCriterion("chapter_unlock_num <=", value, "chapterUnlockNum");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockNumIn(List<Integer> values) {
            addCriterion("chapter_unlock_num in", values, "chapterUnlockNum");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockNumNotIn(List<Integer> values) {
            addCriterion("chapter_unlock_num not in", values, "chapterUnlockNum");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockNumBetween(Integer value1, Integer value2) {
            addCriterion("chapter_unlock_num between", value1, value2, "chapterUnlockNum");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockNumNotBetween(Integer value1, Integer value2) {
            addCriterion("chapter_unlock_num not between", value1, value2, "chapterUnlockNum");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockCostIsNull() {
            addCriterion("chapter_unlock_cost is null");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockCostIsNotNull() {
            addCriterion("chapter_unlock_cost is not null");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockCostEqualTo(Integer value) {
            addCriterion("chapter_unlock_cost =", value, "chapterUnlockCost");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockCostNotEqualTo(Integer value) {
            addCriterion("chapter_unlock_cost <>", value, "chapterUnlockCost");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockCostGreaterThan(Integer value) {
            addCriterion("chapter_unlock_cost >", value, "chapterUnlockCost");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockCostGreaterThanOrEqualTo(Integer value) {
            addCriterion("chapter_unlock_cost >=", value, "chapterUnlockCost");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockCostLessThan(Integer value) {
            addCriterion("chapter_unlock_cost <", value, "chapterUnlockCost");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockCostLessThanOrEqualTo(Integer value) {
            addCriterion("chapter_unlock_cost <=", value, "chapterUnlockCost");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockCostIn(List<Integer> values) {
            addCriterion("chapter_unlock_cost in", values, "chapterUnlockCost");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockCostNotIn(List<Integer> values) {
            addCriterion("chapter_unlock_cost not in", values, "chapterUnlockCost");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockCostBetween(Integer value1, Integer value2) {
            addCriterion("chapter_unlock_cost between", value1, value2, "chapterUnlockCost");
            return (Criteria) this;
        }

        public Criteria andChapterUnlockCostNotBetween(Integer value1, Integer value2) {
            addCriterion("chapter_unlock_cost not between", value1, value2, "chapterUnlockCost");
            return (Criteria) this;
        }

        public Criteria andCostOptionUnlockNumIsNull() {
            addCriterion("cost_option_unlock_num is null");
            return (Criteria) this;
        }

        public Criteria andCostOptionUnlockNumIsNotNull() {
            addCriterion("cost_option_unlock_num is not null");
            return (Criteria) this;
        }

        public Criteria andCostOptionUnlockNumEqualTo(Integer value) {
            addCriterion("cost_option_unlock_num =", value, "costOptionUnlockNum");
            return (Criteria) this;
        }

        public Criteria andCostOptionUnlockNumNotEqualTo(Integer value) {
            addCriterion("cost_option_unlock_num <>", value, "costOptionUnlockNum");
            return (Criteria) this;
        }

        public Criteria andCostOptionUnlockNumGreaterThan(Integer value) {
            addCriterion("cost_option_unlock_num >", value, "costOptionUnlockNum");
            return (Criteria) this;
        }

        public Criteria andCostOptionUnlockNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("cost_option_unlock_num >=", value, "costOptionUnlockNum");
            return (Criteria) this;
        }

        public Criteria andCostOptionUnlockNumLessThan(Integer value) {
            addCriterion("cost_option_unlock_num <", value, "costOptionUnlockNum");
            return (Criteria) this;
        }

        public Criteria andCostOptionUnlockNumLessThanOrEqualTo(Integer value) {
            addCriterion("cost_option_unlock_num <=", value, "costOptionUnlockNum");
            return (Criteria) this;
        }

        public Criteria andCostOptionUnlockNumIn(List<Integer> values) {
            addCriterion("cost_option_unlock_num in", values, "costOptionUnlockNum");
            return (Criteria) this;
        }

        public Criteria andCostOptionUnlockNumNotIn(List<Integer> values) {
            addCriterion("cost_option_unlock_num not in", values, "costOptionUnlockNum");
            return (Criteria) this;
        }

        public Criteria andCostOptionUnlockNumBetween(Integer value1, Integer value2) {
            addCriterion("cost_option_unlock_num between", value1, value2, "costOptionUnlockNum");
            return (Criteria) this;
        }

        public Criteria andCostOptionUnlockNumNotBetween(Integer value1, Integer value2) {
            addCriterion("cost_option_unlock_num not between", value1, value2, "costOptionUnlockNum");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockNumIsNull() {
            addCriterion("option_unlock_num is null");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockNumIsNotNull() {
            addCriterion("option_unlock_num is not null");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockNumEqualTo(Integer value) {
            addCriterion("option_unlock_num =", value, "optionUnlockNum");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockNumNotEqualTo(Integer value) {
            addCriterion("option_unlock_num <>", value, "optionUnlockNum");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockNumGreaterThan(Integer value) {
            addCriterion("option_unlock_num >", value, "optionUnlockNum");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("option_unlock_num >=", value, "optionUnlockNum");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockNumLessThan(Integer value) {
            addCriterion("option_unlock_num <", value, "optionUnlockNum");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockNumLessThanOrEqualTo(Integer value) {
            addCriterion("option_unlock_num <=", value, "optionUnlockNum");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockNumIn(List<Integer> values) {
            addCriterion("option_unlock_num in", values, "optionUnlockNum");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockNumNotIn(List<Integer> values) {
            addCriterion("option_unlock_num not in", values, "optionUnlockNum");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockNumBetween(Integer value1, Integer value2) {
            addCriterion("option_unlock_num between", value1, value2, "optionUnlockNum");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockNumNotBetween(Integer value1, Integer value2) {
            addCriterion("option_unlock_num not between", value1, value2, "optionUnlockNum");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockCostIsNull() {
            addCriterion("option_unlock_cost is null");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockCostIsNotNull() {
            addCriterion("option_unlock_cost is not null");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockCostEqualTo(Integer value) {
            addCriterion("option_unlock_cost =", value, "optionUnlockCost");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockCostNotEqualTo(Integer value) {
            addCriterion("option_unlock_cost <>", value, "optionUnlockCost");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockCostGreaterThan(Integer value) {
            addCriterion("option_unlock_cost >", value, "optionUnlockCost");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockCostGreaterThanOrEqualTo(Integer value) {
            addCriterion("option_unlock_cost >=", value, "optionUnlockCost");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockCostLessThan(Integer value) {
            addCriterion("option_unlock_cost <", value, "optionUnlockCost");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockCostLessThanOrEqualTo(Integer value) {
            addCriterion("option_unlock_cost <=", value, "optionUnlockCost");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockCostIn(List<Integer> values) {
            addCriterion("option_unlock_cost in", values, "optionUnlockCost");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockCostNotIn(List<Integer> values) {
            addCriterion("option_unlock_cost not in", values, "optionUnlockCost");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockCostBetween(Integer value1, Integer value2) {
            addCriterion("option_unlock_cost between", value1, value2, "optionUnlockCost");
            return (Criteria) this;
        }

        public Criteria andOptionUnlockCostNotBetween(Integer value1, Integer value2) {
            addCriterion("option_unlock_cost not between", value1, value2, "optionUnlockCost");
            return (Criteria) this;
        }

        public Criteria andBookCommentNumIsNull() {
            addCriterion("book_comment_num is null");
            return (Criteria) this;
        }

        public Criteria andBookCommentNumIsNotNull() {
            addCriterion("book_comment_num is not null");
            return (Criteria) this;
        }

        public Criteria andBookCommentNumEqualTo(Integer value) {
            addCriterion("book_comment_num =", value, "bookCommentNum");
            return (Criteria) this;
        }

        public Criteria andBookCommentNumNotEqualTo(Integer value) {
            addCriterion("book_comment_num <>", value, "bookCommentNum");
            return (Criteria) this;
        }

        public Criteria andBookCommentNumGreaterThan(Integer value) {
            addCriterion("book_comment_num >", value, "bookCommentNum");
            return (Criteria) this;
        }

        public Criteria andBookCommentNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("book_comment_num >=", value, "bookCommentNum");
            return (Criteria) this;
        }

        public Criteria andBookCommentNumLessThan(Integer value) {
            addCriterion("book_comment_num <", value, "bookCommentNum");
            return (Criteria) this;
        }

        public Criteria andBookCommentNumLessThanOrEqualTo(Integer value) {
            addCriterion("book_comment_num <=", value, "bookCommentNum");
            return (Criteria) this;
        }

        public Criteria andBookCommentNumIn(List<Integer> values) {
            addCriterion("book_comment_num in", values, "bookCommentNum");
            return (Criteria) this;
        }

        public Criteria andBookCommentNumNotIn(List<Integer> values) {
            addCriterion("book_comment_num not in", values, "bookCommentNum");
            return (Criteria) this;
        }

        public Criteria andBookCommentNumBetween(Integer value1, Integer value2) {
            addCriterion("book_comment_num between", value1, value2, "bookCommentNum");
            return (Criteria) this;
        }

        public Criteria andBookCommentNumNotBetween(Integer value1, Integer value2) {
            addCriterion("book_comment_num not between", value1, value2, "bookCommentNum");
            return (Criteria) this;
        }

        public Criteria andBookLikeNumIsNull() {
            addCriterion("book_like_num is null");
            return (Criteria) this;
        }

        public Criteria andBookLikeNumIsNotNull() {
            addCriterion("book_like_num is not null");
            return (Criteria) this;
        }

        public Criteria andBookLikeNumEqualTo(Integer value) {
            addCriterion("book_like_num =", value, "bookLikeNum");
            return (Criteria) this;
        }

        public Criteria andBookLikeNumNotEqualTo(Integer value) {
            addCriterion("book_like_num <>", value, "bookLikeNum");
            return (Criteria) this;
        }

        public Criteria andBookLikeNumGreaterThan(Integer value) {
            addCriterion("book_like_num >", value, "bookLikeNum");
            return (Criteria) this;
        }

        public Criteria andBookLikeNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("book_like_num >=", value, "bookLikeNum");
            return (Criteria) this;
        }

        public Criteria andBookLikeNumLessThan(Integer value) {
            addCriterion("book_like_num <", value, "bookLikeNum");
            return (Criteria) this;
        }

        public Criteria andBookLikeNumLessThanOrEqualTo(Integer value) {
            addCriterion("book_like_num <=", value, "bookLikeNum");
            return (Criteria) this;
        }

        public Criteria andBookLikeNumIn(List<Integer> values) {
            addCriterion("book_like_num in", values, "bookLikeNum");
            return (Criteria) this;
        }

        public Criteria andBookLikeNumNotIn(List<Integer> values) {
            addCriterion("book_like_num not in", values, "bookLikeNum");
            return (Criteria) this;
        }

        public Criteria andBookLikeNumBetween(Integer value1, Integer value2) {
            addCriterion("book_like_num between", value1, value2, "bookLikeNum");
            return (Criteria) this;
        }

        public Criteria andBookLikeNumNotBetween(Integer value1, Integer value2) {
            addCriterion("book_like_num not between", value1, value2, "bookLikeNum");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}